package com.ruoyi.web.controller.goods;

import com.ruoyi.business.service.IServiceItemService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.goods.GoodsStore.domain.StockBill;
import com.ruoyi.goods.GoodsStore.service.IStockBillService;
import com.ruoyi.goods.GoodsStore.service.impl.StockBillItemServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 出入库单据Controller
 *
 * @author godlei
 * @date 2022-11-27
 */
@RestController
@RequestMapping("/system/billItem")
public class StockBillItemController extends BaseController
{
    @Autowired
    private StockBillItemServiceImpl stockBillItemService;
    /**
     * 查询出入库单据列表
     */
    @PreAuthorize("@ss.hasPermi('system:bill:list')")
    @GetMapping("/list/{id}")
    public AjaxResult list(@PathVariable Long id)
    {
        return new AjaxResult(200, "操作成功",stockBillItemService.selectStockBillItemByBillId(id));
    }




}
